<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	xmlns:c="http://java.sun.com/jsp/jstl/core">
<h:head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title>MY PROJECT</title>
</h:head>

<h:body>
	<h:form id="formMenu">
		<h:panelGrid align="center">
			<p:tabMenu activeIndex="#{user.activeIndex}"
				rendered="#{user.loggedIn}" styleClass="alignCenter">
				<p:menuitem value="Home" actionListener="#{user.menuHome}"
					icon="ui-icon-home" update="@form" />
				<p:menuitem value="Status" actionListener="#{user.menuStatus}"
					icon="ui-icon-document" update="@form" />
				<p:menuitem value="Project" actionListener="#{user.menuProject}"
					icon="ui-icon-star" update="@form" />
				<p:menuitem value="Comment" actionListener="#{user.menuComment}"
					icon="ui-icon-comment" update="@form" />
				<p:menuitem value="Us" actionListener="#{user.menuUs}"
					icon="ui-icon-person" update="@form" />
			</p:tabMenu>
			<h:panelGrid align="right">
				<p:commandButton value="Logout" actionListener="#{user.logout}"
					rendered="#{user.loggedIn}" update="@form" />
			</h:panelGrid>
			<ui:include src="#{user.page}" />
		</h:panelGrid>
	</h:form>
</h:body>
</html>

